/*****************************************************************************
 *   Copyright (C) 2008 John Schember <john@nachtimwald.com>                 *
 *                                                                           *
 *   This file is part of niwbillmanager.                                    *
 *                                                                           *
 *   niwbillmanager is free software: you can redistribute it and/or         *
 *   modify it under the terms of the GNU General Public License as          *
 *   published by the Free Software Foundation, either version 3 of the      *
 *   License, or (at your option) any later version.                         *
 *                                                                           *
 *   niwbillmanager is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of          *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the            *
 *   GNU General Public License for more details.                            *
 *                                                                           *
 *   You should have received a copy of the GNU General Public License       *
 *   along with niwbillmanager. If not, see                                  *
 *   <http://www.gnu.org/licenses/>.                                         *
 *****************************************************************************/

#ifndef SETTINGSDIALOG_H
#define SETTINGSDIALOG_H

#include <QColor>
#include <QDialog>
#include <QHash>
#include <QStringList>

#include <backend.h>

#include "ui_settingsdialog.h"

class SettingsDialog : public QDialog, private Ui_SettingsDialog
{
    Q_OBJECT

    public:
        SettingsDialog(QWidget *parent=0);

        QColor getDuePastColor();
        QColor getDueTodayColor();
        QString getCurrencySymbol();
        QString getSelectedBackendName();

        void setDuePastColor(QColor color);
        void setDueTodayColor(QColor color);
        void setCurrencySymbol(QString symbol);
        /**
         * Put the backends into the list.
         * names and descriptions must have the same size. descriptions.at(i)
         * is the description of names.at(i).
         * @param names A list of name.
         * @param descriptions A list of descriptions.
         */
        void setBackends(const QHash<QString, Backend *> &backends,
            const QString &selectedName);
};

#endif /* SETTINGSDIALOG_H */
